package gitee.derumin.railway_accelerator;

import gitee.derumin.lib_for_derumin.helpers.config.ConfigHelper;
import gitee.derumin.railway_accelerator.things.MinecartTrain;
import gitee.derumin.railway_accelerator.things.RAConfig;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;

public class Railway_accelerator implements ModInitializer {
    public static RAConfig CONFIG = new RAConfig();

    /**
     * Runs the mod initializer.
     */
    @Override
    public void onInitialize() {
        ConfigHelper.register(CONFIG, "railway_accelerator");
        ServerTickEvents.START_SERVER_TICK.register(server -> MinecartTrain.onTickStart());
    }
}
